#coding=utf-8

# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/topics/item-pipeline.html

import sys
reload(sys)
sys.setdefaultencoding('utf8')

class SnailPipeline(object):
    def process_item(self, item, spider):
        print >> sys.stderr, 'pipeline %s' % item['url']
        spider.store_infile(item)
	
